import request from "@/utils/request";

export function delivery_index(params) {
  return request({
    url: "/delivery/index",
    method: "get",
    params
  });
}

export function delivery_info(params) {
  return request({
    url: "/delivery/info",
    method: "get",
    params
  });
}

export function delivery_add(data) {
  return request({
    url: "/delivery/add",
    method: "post",
    data: data
  });
}

export function delivery_edit(data) {
  return request({
    url: "/delivery/edit",
    method: "post",
    data: data
  });
}

export function delivery_setDefault(data) {
  return request({
    url: "/delivery/setDefault",
    method: "post",
    data: data
  });
}

export function delivery_members(params) {
  return request({
    url: "/delivery/members",
    method: "get",
    params
  });
}
export function delivery_membersNot(params) {
  return request({
    url: "/delivery/membersNot",
    method: "get",
    params
  });
}
export function delivery_unbind(data) {
  return request({
    url: "/delivery/unbind",
    method: "post",
    data: data
  });
}
export function delivery_bind(data) {
  return request({
    url: "/delivery/bind",
    method: "post",
    data: data
  });
}
export function delivery_batchUnbind(data) {
  return request({
    url: "/delivery/batchUnbind",
    method: "post",
    data: data
  });
}
export function delivery_batchBind(data) {
  return request({
    url: "/delivery/batchBind",
    method: "post",
    data: data
  });
}
export function delivery_bindAll(data) {
  return request({
    url: "/delivery/bindAll",
    method: "post",
    data: data
  });
}

export function delivery_delete(data) {
  return request({
    url: "/delivery/delete",
    method: "post",
    data: data
  });
}
